import http from '../../../base/api/public'
import querystring from 'querystring'
let sysConfig = require('@/../config/sysConfig')
// let apiUrl = sysConfig.xcApiUrlPre;
 let apiUrl = 'api';
//查询个人用户信息
export const userInfo = (params) => {
  //请求后台请求
  return http.requestPost(apiUrl+'/userinfo/selectByPrimary',params);
}

//获取生产线下拉列表
export const flowSel = () => {
  return http.requestQuickGet(apiUrl+'/flow/flowSel')
}

//修改个人信息
export const upadte = (params) => {
  return http.requestPost(apiUrl+'/userinfo/update',params)
}

//新增修改个人信息
export const insertOrUpadte = (params) => {
  return http.requestPost(apiUrl+'/userinfo/insertOrUpadte',params)
}

//获取员工信息列表
export const userinfoPage = (params) => {
  return http.requestPost(apiUrl+'/userinfo/userinfoPage',params)
}

//根据主键获取员工信息VO
export const selectUserInfoVOByPrimary = (params) => {
  return http.requestPost(apiUrl+'/userinfo/selectUserInfoVOByPrimary',params)
}

//根据主键获取员工信息VO
export const deleteUserInfo = (params) => {
  return http.requestPost(apiUrl+'/userinfo/deleteUserInfo',params)
}

//校验当前登录人身份
export const checkRole = () => {
  return http.requestQuickGet(apiUrl+'/userinfo/checkRole')
}
